package com.zksite.nator.processor.http.container;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

import org.springframework.stereotype.Component;

import com.zksite.nator.common.container.ChannelContainer;

import io.netty.channel.Channel;

@Component
public class SessionContainer implements ChannelContainer {

	private static Map<String, Channel> container = new ConcurrentHashMap<>();

	@Override
	public void put(String key, Channel channel) {
		container.put(key, channel);
	}

	@Override
	public void remove(String key) {
		container.remove(key);
	}

	@Override
	public Channel get(String key) {
		return container.get(key);
	}

	@Override
	public void remove(Channel channel) {
		
	}

}
